package com.ynding.cloud.auth.server.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ynding.cloud.auth.api.admin.entity.Role;

import java.util.List;

/**
 * <p> </p>
 *
 * @author ynding
 * @version 2021/11/1
 **/
//@CacheConfig(cacheNames = "roles")
public interface IRoleService extends IService<Role> {

    /**
     * 根据菜单id查找角色列表
     * @param menuId
     * @return
     */
    List<Role> listByMid(Long menuId);

    /**
     * 根据用户id查找角色列表
     * @param userid
     * @return
     */
    List<Role> listByUserid(Long userid);

}
